
	<!DOCTYPE html>
	<html lang="ru">
	<head>
		<meta charset="utf-8">
		<title>Золотое Время (Golden Time)</title>
		<script type="text/javascript" src="../template/js/jquery.js"></script>
		<script type="text/javascript" src="../template/js/core.js"></script>
		<script type="text/javascript" src="../template/js/location.js"></script>
		
		<link rel="stylesheet" href="../template/style.css" type="text/css" media="screen" />
		
		<?php include 'core.php';
		$admin_obj = new admin();?>
		<script type="text/javascript">
			var HTTP_HOST = '<?php echo HTTP_HOST; ?>';
		</script>
		
	</head>
	<body>
	
		<header>
			<div class="in_header">
				<div class="logo">
					<a href="../index.php" title="logo"><img src="../images/logo.png" alt="logo"/></a>
				</div>
				<nav>
					<ul>
					<? $mas = $admin_obj->in_menu();
						if ($mas!=false)
							for ($i=0; $i<count($mas);$i++)
								echo '<li><a href="page.php?idpage='.$mas[$i]['id'].'"title="'.$mas[$i]['title'].'">'.$mas[$i]['title'].'</a></li>';						
					?>
					</ul>
				</nav>
			</div>
		</header>

	
	<div class="content">
	<section class="main">
	
		<?php if (isset($_GET['action']) && ($_GET['action']=='restore')):?>
			<div class="lost_pass">				
				<p><label for="restore_pass">email</label><input type="text" name="restore_pass" id="restore_pass" maxlength="255"/></p>	
				<p><input type="button" value="Возобновить" id="user-lost"/></p>			
			</div>
		<? endif;?>
		
		
		<?php if (!isset($_GET['action'])|| ($_GET['action']!=='restore')):?>
			<a href="auth.php?action=restore">Восстановление логина</a>
		<? endif;?>
		<?php if (!isset($_GET['action'])|| ($_GET['action']!=='reg')):?>
			<a href="auth.php?action=reg">Реестрация</a>
		<? endif;?>
		<?php if (isset($_GET['action']) && ($_GET['action']=='reg')):?>
		<div class = "reg">		
			<form action="" method="get">
				<p><label for="login">Логин</label><input type="text" name="login" id="login" maxlength="255"/></p>
				<p><label for="password">Пароль</label><input type="password" name="password" id="password" maxlength="255"/></p>
				<p><label for="confirm">Подтверждение</label><input type="password" name="confirm" id="confirm" maxlength="255"/></p>		
				<p><label for="name">Имя</label><input type="text" name="name" id="name" maxlength="255"/></p>
				<p><label for="surname">Фамилия</label><input type="text" name="surname" id="surname" maxlength="255"/></p>		
				<p><label for="phone">Номер телефона</label><input type="text" name="phone" id="phone" maxlength="255"/></p>
				<p><label for="email">email</label><input type="text" name="email" id="email" maxlength="255"/></p>
				<p><label for="country">Страна</label><select name="country" id="country"><option value="0">Выберите страну...</option><?include'class.location.php'; echo $location_obj->getCountries();?></select></p>
				<p><label for="city">Город</label><select name="city" id="city"><option value="0">Выберите город...</option></select></p>
				<p><label for="question">Контрольный вопрос</label><select name="question" id="question" maxlength="255"><option value="0" >Выберите вопрос...</option><? echo $core_obj->getQuestion();?></select></p>
				<p><label for="response">Контрольный ответ</label><input type="text" name="response" id="response" maxlength="255"/></p>				
				<input type="button" value="Регистрироватся" id="user-register">
			</form>
		</div>
		<? endif; ?>
	</section>
	</div>
	<footer>

	</footer>
	</body>
	</html>

	
	